package com.aaa;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.rsocket.EnableRSocketSecurity;

/**
 * 弹簧引导安全应用程序
 *
 * @author 太阳偷渡青山
 * @date 2022/12/30
 */
@SpringBootApplication
// 方法二：开启注解
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class SpringBootSecurityApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootSecurityApplication.class, args);
    }

}
